<include file="Public/head" />
<style>
    .chenggong1 .paidan{padding-top:30px;}
    .chenggong1 .paidan h6{color:#666;}
    .chenggong1 .paidan h5{color:red;}
    .chenggong1{width: 750px;}
    .chenggong1 .shenhei-btn{margin: 50px 130px 0px; }
    .chenggong1 .msg{height: 130px;}
	.yuyue table tr, .yuyue table td{border: 0;
		line-height:40px;}
	.yuyue-input{
		vertical-align: middle;
		margin-right: 6px;
		margin-left: 30px;
	}
</style>
</head>
<body>
  <include file="Public/common_header" />

  <div class="mian">
    <include file="Public/sidebar" menu='pmgl.csfkgz' />

    <div class="mianR">
			<h3 class="yonghu">支付结果获取</h3>
			<div class="yuyue" style="background: none;padding-left: 25px;padding-top: 10px;">
				<table>
					<tr>
						<td>支付方式:</td>
						<td style="padding-left: 10px;"><input class="yuyue-input" style="margin-left: -10px;" type="radio" value="1" name="pay_method" checked />拉卡拉<input class="yuyue-input" type="radio" value="2" name="pay_method" />支付宝</td>
					</tr>
					<tr>
						<td>商户订单号:</td>
						<td style="padding-left: 10px;"><input type="text" style="width: 200px; height: 20px;" name="out_trade_no" id="out_trade_no"/></td>
					</tr>
				</table>
			</div>

			<div class="yuSuo clearfix" style="float:left;padding-left: 20px;padding-top: 20px;">
				<input type="button" value="确认" id="search" class="suoSou" style="width:80px;" />
				<!--<input type="button" value="取消" class="suoSou" style="width:80px;" />-->
				<!--<input id="status" name="status" type="hidden" value="{$params.status|default=1}"/>-->

				<!--<input type="button" value="搜索" id="search" class="suoSou" style="width:80px;" />-->
			</div>

			<div class="listBox" id="listBox">

            </div>
		</div>
	</div>
	<div class="clear"></div>
  </div>

  <script>
	  $(function(){
		  $('#search').click(function () {
			  var out_trade_no = $("#out_trade_no").val();
			  var type = $("input[name='pay_method']:checked").val();
			  if(type==''){
				  delay_alert('请选择支付方式');return;
			  }
			  if(out_trade_no==''){
				  delay_alert('请填写订单号');return;
			  }
			  var post_data = {type: type, out_trade_no: out_trade_no};
			  $.post('/PayResult/pay_trade_query', post_data, function (res) {
				  if (res.code == 200) {
					  colse_hide();
					  delay_alert('操作成功!');
					  setTimeout(function () {
						  window.location.reload();
					  }, 500);
				  } else {
					  delay_alert(res.msg);
				  }
			  }, 'json');
			  return false;
		  });
	  })

</script>
 <include file="Public/foot" />